import QtQuick 1.1
import com.nokia.meego 1.0

Page {

    id: splash

    Rectangle {
        id: splashBlock
        width: parent.width
        height: parent.height
        color: "blue"
        Text {
            id: titleText
            anchors.top: splashBlock.top
            anchors.topMargin: 10
            anchors.horizontalCenter: splashBlock.horizontalCenter
            text: "MeasureMee"
            horizontalAlignment: Text.AlignHCenter
            font.pointSize: 30
        }
        Text {
            id: creditText
            anchors.bottom: splashBlock.bottom
            anchors.bottomMargin: 2
            anchors.horizontalCenter: splashBlock.horizontalCenter
            text: "Wade Shull<br />Mu Studios<br />http://www.mustudios.com<br />http://blogofmu.com"
            font.pointSize: 18
            color: "white"
            horizontalAlignment: Text.AlignHCenter
        }
        Image {
            id: measureMeeLogo
            width: 270
            height: 270
            anchors.verticalCenter: splashBlock.verticalCenter
            anchors.verticalCenterOffset: -10
            anchors.horizontalCenter: splashBlock.horizontalCenter
            source: "measuremeelogo.jpg"
        }
        Rectangle {
            id: loadingBlock
            width: loadingText.width + 14
            height: loadingText.height + 5
            anchors.left: parent.left
            anchors.leftMargin: 5
            anchors.top: parent.top
            anchors.topMargin: 60
            smooth: true
            radius: 5
            color: "grey"
            opacity: 0.9
            Text {
                id: loadingText
                anchors.left: parent.left
                anchors.leftMargin: 7
                anchors.top: parent.top
                anchors.topMargin: 2.5
                text: "Loading..."
            }
        }
        Timer {
            interval: 7000
            repeat: false
            running: true
            onTriggered: { pageStack.push(Qt.resolvedUrl("GallerySelected.qml")) }
        }
    }
}
